var Util = {};

Util.getTime = function(d) {
	var AM = true;
	var hours = d.getHours();
	if (hours >= 12) {
		AM = false;
		hours = hours - 12;
	}
	if (hours < 10) {
		hours = "0" + hours;
	}
	var minutes = d.getMinutes();
	if (minutes < 10) {
		minutes = "0" + minutes;
	}
	return hours + ":" + minutes + AM ? " AM" : " PM";
};

// make markers
Util.makeMarker = function(map, coords) {
	return new google.maps.Marker({
		position : coords,
		map : map,
		title : coords.toString()
	});
};
